//
//  FPGoodMovieTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPGoodMovieTableViewCell.h"

@implementation FPGoodMovieTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.BigImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kImageH(120))];
        [self.contentView addSubview:_BigImage];
        
        self.titlelbl = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(10), _BigImage.height + kImageH(5), kImageW(280), kImageH(30))];
        self.titlelbl.font = [UIFont fontWithName:@"Arial-BoldMT" size:17];
        [self.contentView addSubview:_titlelbl];
        
        self.messlbl = [[UILabel alloc]initWithFrame:CGRectMake(_titlelbl.x, _titlelbl.y + _titlelbl.height , kImageW(280), kImageH(40))];
        self.messlbl.numberOfLines = 0;
        self.messlbl.font = [UIFont systemFontOfSize:13];
        self.messlbl.textColor = [UIColor grayColor];
        [self.contentView addSubview:_messlbl];
    
        self.smallImage = [[UIImageView alloc]initWithFrame:CGRectMake(_messlbl.x + _messlbl.width, _messlbl.y - kImageH(20), kImageW(80), kImageH(100))];
        [self.contentView addSubview:_smallImage];
        
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(_messlbl.x, _messlbl.y + _messlbl.height + kImageH(5), _messlbl.width, kImageH(2))];
        lineView.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:lineView];
        
        self.movieTielbl = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(170), lineView.y + kImageH(10), kImageW(100), kImageH(20))];
        self.movieTielbl.textAlignment = 2;
        self.movieTielbl.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_movieTielbl];
        
        self.authorlbl = [[UILabel alloc]initWithFrame:CGRectMake(_movieTielbl.x, _movieTielbl.y + _movieTielbl.height, _movieTielbl.width, kImageH(15))];
        self.authorlbl.textAlignment = 2;
        self.authorlbl.textColor = [UIColor grayColor];
        self.authorlbl.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_authorlbl];
    }
    return self;
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
